-- GENERATED SPELL FOR [Hardened Steel Reaver] --


function spell0_28578(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(42724,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28578', 613, 1)
end

function spell1_28578(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(15655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28578', 2257, 1)
end

function spell2_28578(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(59142,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28578', 2282, 1)
end

function Sorts_28578(pUnit, Event)
local choix_sorts_28578 = math.random(0, 2)
if choix_sorts_28578 == 0 then
pUnit:RegisterEvent('spell0_28578', 1, 1)
end
if choix_sorts_28578 == 1 then
pUnit:RegisterEvent('spell1_28578', 1, 1)
end
if choix_sorts_28578 == 2 then
pUnit:RegisterEvent('spell2_28578', 1, 1)
end
end

function mob28578_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28578', math.random(1500, 3000), 1)
end

function mob28578_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28578_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28578_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28578, 1, 'mob28578_Action')
RegisterUnitEvent(28578, 2, 'mob28578_Leave')
RegisterUnitEvent(28578, 3, 'mob28578_Kill')
RegisterUnitEvent(28578, 4, 'mob28578_Die')
